package com.qidian.mes.qc.mapper;

import com.qidian.mes.pojo.Defect;

import java.util.List;


public interface DefectMapper {
    /**
     *
     * @param id
     * @return
     */
    Defect selectById(Long id);

    //查询缺陷描述
    Defect selectByDefectName(String defectName);

    //检测类型
    Defect getByDictTypeDefect(String defectType);


    //添加缺陷
    int save(Defect defect);

    //分页
    List<Defect> list( Defect defect);

    //编辑
    Integer update(Defect defect);

    //删除
    int deleteByDefectId(Long defectId);//通过id删除缺陷信息

    //批量删除..得是数组
    int deletesByDefectId(Long [] defectIds);






}
